package sanrenxing.dayEnd.backRepertoryTotal.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 功能：现金应收应付的实体类
 * 作者：赵思睿
 * 日期：2021/3/18 0018-10:50
 * 版本：1.0
 */
public class CashReceivable implements Serializable {
    //现金应收应付编号
    private int Id;
    //业务日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date businDate;
    //现金账户编号
    private int caId;
    //业务类型
    private String businType;
    //资金流向
    private int capFlow;
    //金额
    private double money;
    //基金编号
    private String fundId;
    //Ta库存编号
    //private int taStockId;
    // 统计状态
    private int states;

    /**
     * 默认构造方法
     */
    public CashReceivable() {
    }

    /**
     * 带参构造方法
     * @param moneyId 现金应收应付编号
     * @param businDate 业务日期
     * @param caId 现金账户编号
     * @param businType 业务类型
     * @param capFlow 资金流向
     * @param money 金额
     * @param fundId 基金编号
     */
    public CashReceivable(int moneyId, Date businDate, int caId, String businType, int capFlow, double money, String fundId, int states) {
        this.Id = moneyId;
        this.businDate = businDate;
        this.caId = caId;
        this.businType = businType;
        this.capFlow = capFlow;
        this.money = money;
        this.fundId = fundId;
        this.states=states;
    }

    //自动生成的setter/getter方法
    public int getMoneyId() {
        return Id;
    }

    public void setMoneyId(int moneyId) {
        this.Id = moneyId;
    }

    public Date getBusinDate() {
        return businDate;
    }

    public void setBusinDate(Date businDate) {

        this.businDate = businDate;
    }

    public int getCaId() {
        return caId;
    }

    public void setCaId(int caId) {
        this.caId = caId;
    }

    public String getBusinType() {
        return businType;
    }

    public void setBusinType(String businType) {
        this.businType = businType;
    }

    public int getCapFlow() {
        return capFlow;
    }

    public void setCapFlow(int capFlow) {
        this.capFlow = capFlow;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }


    public int getStates() {
        return states;
    }

    public void setStates(int states) {
        this.states = states;
    }

    @Override
    public String toString() {
        return "CashReceivable{" +
                "moneyId=" + Id +
                ", businDate=" + businDate +
                ", caId='" + caId + '\'' +
                ", businType=" + businType +
                ", capFlow=" + capFlow +
                ", money=" + money +
                ", fundId='" + fundId + '\'' +
                ", states='" + states + '\'' +
                '}';
    }
}
